const express = require('express')
const router = express.Router()

// 导入职工表处理函数路由
const employee_handler = require('../router_handler/employee')

router.get('/employee', employee_handler.getEmpList)
router.get('/employee/info', employee_handler.searchWorkerinfo)
router.post('/employee/updateInfo',employee_handler.addWorker)
router.delete('/deleteEmployee/:eid',employee_handler.deleteByEid)

module.exports = router